#include "Light.h"


Light::Light(QObject* parent): QObject(parent)
{
}

Light::Light(gtypes::Vector3 pos, float r, float g, float b)
{
	m_light_pos=pos;
	m_r=r; m_g=g; m_b=b;
}

void Light::setPosition(const gtypes::Vector3& position)
{
   m_light_pos = position;
}

void Light::setRgb(float r, float g, float b)
{
   m_r = r;
   m_g = g;
   m_b = b;
}


void Light::setRed(float r)
{
   m_r = r;
}

void Light::setGreen(float g)
{
   m_g = g;
}

void Light::setBlue(float b)
{
   m_b = b;
}

